<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex弹性布局</title>
    <style>
        .big-box {
            display: flex;   /* 默认情况下，flex布局的主轴是X轴，侧轴是Y轴 */
            justify-content: space-between;
            align-items: center ;
            width: 800px;
            height: 600px;
            background-color: chartreuse;
        }

        .small-box {
            width: 200px;
            height: 200px;
            background-color: coral;
        }
    </style>
</head>
<body>
    <div class="big-box">
        <div class="small-box"></div>
        <div class="small-box"></div>
        <div class="small-box"></div>
    </div>
</body>
</html>